package cn.dakaqi.services;

import cn.dakaqi.entities.WelfareItem;
import cn.dakaqi.utils.exception.ServiceRuntimeException;
import org.springframework.data.domain.Page;

import java.util.List;

/**
 * Created by chunyang on 2016/4/18.
 */
public interface WelfareItemService
{
    public void save(String param)throws ServiceRuntimeException;
    public void save(WelfareItem welfareItem)throws ServiceRuntimeException;
    public void update(WelfareItem welfareItem)throws ServiceRuntimeException;
    public void updateIsChanage(Long id)throws ServiceRuntimeException;
    public void updateIsUse(Long id)throws ServiceRuntimeException;
    Page<WelfareItem> findByWelfare(Long welfareId, int pageNumber)throws ServiceRuntimeException;
    WelfareItem findUnChangeByWelfare(Long welfareId)throws ServiceRuntimeException;
    List<WelfareItem> findByMemberAndWelfare(String memberCode, Long welfareId)throws ServiceRuntimeException;

}
